package com.sky.mapper.admin;

import com.sky.pojo.CourierTradeOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface TradeOrderMapper {


    @Insert("INSERT INTO tb_courier_trade_order VALUES(NULL,#{totalAmount},#{courierId},#{orderNumber},#{waybillStatus},#{tradeCreateTime},#{tradeCompleteTime},#{tradeCancelTime},#{overTime},#{shopAddress},#{remark},#{customerAddress},#{customerExpectedDeliveryTime},#{customerName},#{shopName},#{toBeMealTime},#{telephone},#{income})")
    void save(CourierTradeOrder tradeOrder);
    @Update("update tb_courier_trade_order set courier_id=#{courierId} where trade_no=#{tradeNo}")
    void updateTradByCourierId(Long tradeNo, Long courierId);
}
